<template>
  <div>
    <van-nav-bar title="我的收藏" />
    <HmItem v-for="item in list" :key="item.id" :item="item"></HmItem>
  </div>
</template>

<script>
import { getLike } from "@/api/user";

export default {
  data() {
    return {
      list: [],
    };
  },
  methods: {
    async getList() {
      const res = await getLike({
        optType: 2,
        pageSize: 10,
      });

      this.list = res.data.data.rows;
    },
  },
  created() {
    this.getList();
  },
};
</script>

<style></style>
